package com.ru.application.creditscore.service;

import java.util.List;

import com.ru.application.creditscore.dao.support.SearchParameters;
import com.ru.application.creditscore.domain.ScoringRule;

public interface ScoringRuleService {

    public ScoringRule findRule(Integer id);

    public List<ScoringRule> findAll(SearchParameters sp);

    public List<ScoringRule> findRuleBySchemaId(Integer schemaId, SearchParameters sp);

    public List<ScoringRule> findRuleByFactorId(Integer factorId, SearchParameters sp);

    public List<ScoringRule> findRuleBySchemaIdAndFactorId(Integer schemaId,
	    Integer factorId, SearchParameters sp);

    public boolean updateRule(ScoringRule rule);

    public void createRule(ScoringRule rule);

    public void removeRule(Integer id);

    public void updateListRule(List<ScoringRule> listRule);

    public void createListRule(List<ScoringRule> listRule);

    public void removeListRule(List<Integer> listId);
}
